package com.itheima.stock.service.Impl;

import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.mapper.StockBusinessMapper;
import com.itheima.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 34976
 */
@Service
public class StockServiceImpl implements StockService {

    @Autowired
    public StockBusinessMapper stockBusinessMapper;

    @Override
    public List<StockBusiness> getStockBusiness() {
        return stockBusinessMapper.selectAll();
    }
}
